<?php

declare(strict_types=1);

namespace app\example\controller;

use app\admin\BaseAdminController;
use think\facade\View;

class Pages extends BaseAdminController
{
    public function index()
    {
        View::assign('title', '文档列表/示例页面');
        return View::fetch();
    }

    public function table1()
    {
        View::assign('title', '表格插件/示例页面');
        return View::fetch();
    }

    public function gallery()
    {
        View::assign('title', '图库列表/示例页面');
        return View::fetch();
    }

    public function config1()
    {
        View::assign('title', '网站配置/示例页面');
        View::assign('addJs', addJs(['tagsinput']));
        return View::fetch();
    }

    public function rabc()
    {
        View::assign('title', '设置权限/示例页面');
        return View::fetch();
    }

    public function add_doc()
    {
        View::assign('title', '新增文档/示例页面');
        View::assign('addJs', addJs(['tagsinput', 'webuploader', 'magnific-popup']));
        return View::fetch();
    }

    public function blog()
    {
        View::assign('title', '博客列表页/示例页面');
        return View::fetch();
    }

    public function blog_detail()
    {
        View::assign('title', '博客详情页/示例页面');
        return View::fetch();
    }

    public function layout_form()
    {
        View::assign('title', '表单布局/示例页面');
        return View::fetch();
    }

    public function modal_tab()
    {
        View::assign('title', '模态框中使用Tab标签页/示例页面');
        return View::fetch();
    }

    public function modal_maximize()
    {
        View::assign('title', '模态框的最大化/示例页面');
        return View::fetch();
    }

    public function search1()
    {
        View::assign('title', '搜索布局/示例页面');
        View::assign('addJs', addJs(['datepicker']));
        return View::fetch();
    }

    public function search2()
    {
        View::assign('title', '搜索布局2/示例页面');
        View::assign('addJs', addJs(['datepicker']));
        return View::fetch();
    }

    public function choose1()
    {
        View::assign('title', '选择示例/示例页面');
        return View::fetch();
    }

    public function choose2()
    {
        View::assign('title', '选择示例2/示例页面');
        return View::fetch();
    }

    public function choose3()
    {
        View::assign('title', '选择示例3/示例页面');
        return View::fetch();
    }

    public function choose4()
    {
        View::assign('title', '选择示例4/示例页面');
        return View::fetch();
    }

    public function code()
    {
        View::assign('title', '代码演示示例/示例页面');
        return View::fetch();
    }

    public function comment()
    {
        View::assign('title', '留言列表/示例页面');
        return View::fetch();
    }

    public function dashboard()
    {
        View::assign('title', '数据统计/示例页面');
        return View::fetch();
    }

    public function pricing()
    {
        View::assign('title', '产品价格/示例页面');
        return View::fetch();
    }

    public function search_bar()
    {
        View::assign('title', '搜索框/示例页面');
        return View::fetch();
    }

    public function avatar()
    {
        View::assign('title', '用户头像/示例页面');
        return View::fetch();
    }

    public function animate()
    {
        View::assign('title', '动画示例/示例页面');
        return View::fetch();
    }

    public function widget()
    {
        View::assign('title', '小部件/示例页面');
        return View::fetch();
    }
}
